import redis.clients.jedis.JedisPubSub;
/**
 * Created By  醉美柳舞之众星捧月
 * @author song
 * @date 2017/11/12 2:17
 */
public class RedisSubscribeImpl extends JedisPubSub {
    @Override
    public void onMessage(String channel, String message) {
        System.out.println(channel + " ------ " + message);
    }

    @Override
    public void onPMessage(String pattern, String channel, String message) {
    }

    @Override
    public void onSubscribe(String channel, int subscribedChannels) {
    }

    @Override
    public void onUnsubscribe(String channel, int subscribedChannels) {
    }

    @Override
    public void onPUnsubscribe(String pattern, int subscribedChannels) {
    }

    @Override
    public void onPSubscribe(String pattern, int subscribedChannels) {
    }

    @Override
    public void onPong(String pattern) {
    }
}
